package JUnitTests;

import mcommand.MainPanel;
import mcommand.MainPanel.MainPanelState;
import junit.framework.TestCase;

/**
 * tests the start state of the MainPanel.
 *
 * @author Marcel, Christian, Klaus
 */
public class MainPanelStateTest extends TestCase {

    MainPanel mp;
    MainPanelState mps;
    
    
    protected void setUp() throws Exception {
        super.setUp();

        mp = new MainPanel();
        mps = mp.getState();
    }

    /**
     *  test that the start State from MainPanel is Splash.
     */
    public final void testStartSplashState() {
        assertEquals(MainPanelState.SPLASH, mps);

    }

    /**
     * Calls the tearDown mehtod of the super class.
     */
    protected final void tearDown() throws Exception {
        super.tearDown();
    }

}
